export interface FromUser {
    avatarPath?: string,
    displayName?: string,
    isGuest?: boolean,
    userId?: number
}

export type MsgType = 'text' | 'image' | 'profile' | 'video';
export type Status = 'send_going' | 'send_succeed' | 'send_failed';

export interface MessageItem {
    chatHistoryId?: number,
    chatRoomId: string,
    duration?: number,
    extend?: any,
    fromUser: FromUser,
    gmTimeString?: string,
    isOutgoing?: boolean,
    mediaPath?: string,
    msgId?: string,
    targetId?: string,
    text?: string,
    timeString?: string,
    msgType?: MsgType,
    status?: Status,
    sentTime?:number
}